/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package khmhappointmentsystem;

/**
 *
 * @author mbelisle
 */
public class UserCheck {
    
     public static boolean canSeeFile()
    {
        if (User.previligeAvailable("File"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    
    public static boolean canLogout()
    {
        if (User.previligeAvailable("Log Out"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canChangePassword()
    {
        if (User.previligeAvailable("Change Password"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeePatient()
    {
        if (User.previligeAvailable("Patient"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canRegister()
    {
        if (User.previligeAvailable("Register Patient"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeHistory()
    {
        if (User.previligeAvailable("Patient History"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeAppointment()
    {
        if (User.previligeAvailable("Appointment"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canScheduleAppointments()
    {
        if (User.previligeAvailable("Schedule Appointment"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeAppointments()
    {
        if (User.previligeAvailable("Current Appointments"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canClose()
    {
        if (User.previligeAvailable("Close Appointment"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeClinics()
    {
        if (User.previligeAvailable("Clinics"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canCreateClinics()
    {
        if (User.previligeAvailable("Create New Clinic"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canEditClinics()
    {
        if (User.previligeAvailable("Edit Clinic"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }
    
    public static boolean canSeeTherapy()
    {
        if (User.previligeAvailable("Appointments"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }
    
     public static boolean canSeeTherapyReport()
    {
        if (User.previligeAvailable("Productivity Report"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeReports()
    {
        if (User.previligeAvailable("Reports"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeTally()
    {
        if (User.previligeAvailable("Specialist Clinic Tally Checkin"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeClinicListing()
    {
        if (User.previligeAvailable("Clinic Listing"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeePermissions()
    {
        if (User.previligeAvailable("Permissions"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canCreateNewUser()
    {
        if (User.previligeAvailable("Create New User"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canUpdateUser()
    {
        if (User.previligeAvailable("Update User"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeHelp()
    {
        if (User.previligeAvailable("Help"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    public static boolean canSeeAbout()
    {
        if (User.previligeAvailable("About"))
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}
